package com.xqboss.apps.domain.game;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.game.GameCodeEnum;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.stream.Stream;

/**
 * <p>
 *
 * </p>
 *
 * @author ljh
 * @since 2024-1-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "Game对象", description = "游戏库表")
public class Game extends BaseTable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("游戏id")
    private Long id;
    @TableField("`name`")
    @ApiModelProperty("游戏名称")
    private String name;
    @ApiModelProperty("游戏标识")
    private GameCodeEnum gameCode;
    @ApiModelProperty("游戏背景图")
    private String backgroundUrl;
    @ApiModelProperty("游戏跳转地址")
    private String jumpUrl;
    @ApiModelProperty("游戏是否开启（0-否，1-是），默认开启")
    private Integer isOpen;
    @ApiModelProperty("游戏是否隐藏（0-否，1-是），默认不隐藏")
    private Integer isHidden;
    @ApiModelProperty("配置键（获取公告使用）")
    private String configKey;
    @ApiModelProperty("排序字段")
    private Integer sort;


}
